﻿

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using SWDataDB.Models;
using SWDataDB.BLL;
using SWDataDB.DAL;
using System.Data;

public partial class AdminManage_add_AddYXDes : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }


    protected void submit_Click(object sender, EventArgs e)
    {
        YX_DEEPTH_TBL yxobj = new YX_DEEPTH_TBL();
        YXDeepthInfo kc_in = new YXDeepthInfo();

        yxobj.O_ZK_CODE = Request.Form["ZK_CODE"];
        yxobj.O_CY_DEEP = Request.Form["CY_DEEP"];
        yxobj.O_YX_DESRIBE =this.YX_DESRIBE.InnerText;
        yxobj.O_ZL_FILE_ID = Request.Form["ZL_FILE_ID"];







        if (kc_in.AddYXDeepthInfo(yxobj) == 1)
        {
           Response.Write("<script language=javascript>alert('添加成功！');location='../Manage/ZKManage.aspx'</script>");
            //Response.Redirect("ZLManage.aspx");
        }
        else
        {
            Response.Write("<script language=javascript>alert('添加失败！');location='../Manage/ZKManage.aspx'</script>");
        }
    }
}